package me.firstapp.module.weixin.product;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import me.firstapp.module.base.BaseEntity;

@Entity
@Table(name = "PRODUCT_SKU")
public class ProductSku extends BaseEntity {

	private static final long serialVersionUID = -2742850500063550448L;

	public static final int DEFAULT_NOT = 0;// 不是默认
	public static final int DEFAULT_YES = 1;// 是默认

	// 所属商品ID
	@Column(name = "PRODUCT_ID", nullable = false)
	private Long productId;

	// 规格名称
	@Column(name = "SKU_NAME", length = 20, nullable = false)
	private String skuName;

	// 是否默认
	@Column(name = "IS_DEFAULT", nullable = false, columnDefinition = "TINYINT")
	private Integer isDefault;

	public Long getProductId() {
		return productId;
	}

	public void setProductId(Long productId) {
		this.productId = productId;
	}

	public String getSkuName() {
		return skuName;
	}

	public void setSkuName(String skuName) {
		this.skuName = skuName;
	}

	public Integer getIsDefault() {
		return isDefault;
	}

	public void setIsDefault(Integer isDefault) {
		this.isDefault = isDefault;
	}

}
